<?php
global $_POST;
require_once('./roots.php');
require_once('./classes/rbac.php');

$result=NULL;
//print_r($_POST);

    if ($_POST['name']!=""){
        $rbac=new rbac();
        $result=$rbac->Modificar_rol($_POST['old_name'], $_POST['name'], $_POST['estado'],  $_SESSION['sess_login_username']);
    }
header("Location:RolListModificar.php?result=".$result);


?>
